﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 更新收货表和erp : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "POMode",
                table: "T_ReceivingBill",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WorkShopCode",
                table: "T_ReceivingBill",
                type: "nvarchar(20)",
                maxLength: 20,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WorkShopName",
                table: "T_ReceivingBill",
                type: "nvarchar(20)",
                maxLength: 20,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "BeginDate",
                table: "T_MaterialPackageReceiving",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "EndDate",
                table: "T_MaterialPackageReceiving",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "IsNeedQc",
                table: "T_MaterialPackageReceiving",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "POMode",
                table: "T_MaterialPackageReceiving",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "POMode",
                table: "T_ReceivingBill");

            migrationBuilder.DropColumn(
                name: "WorkShopCode",
                table: "T_ReceivingBill");

            migrationBuilder.DropColumn(
                name: "WorkShopName",
                table: "T_ReceivingBill");

            migrationBuilder.DropColumn(
                name: "BeginDate",
                table: "T_MaterialPackageReceiving");

            migrationBuilder.DropColumn(
                name: "EndDate",
                table: "T_MaterialPackageReceiving");

            migrationBuilder.DropColumn(
                name: "IsNeedQc",
                table: "T_MaterialPackageReceiving");

            migrationBuilder.DropColumn(
                name: "POMode",
                table: "T_MaterialPackageReceiving");
        }
    }
}
